<script type="text/javascript">
<!--
function submitSettingsForm(response)
{
	$('#page_websites').attr("disabled", "disabled");
	$(".FB_button ").attr("disabled", "disabled");
	$('#perms_loader').show();
    $.post(
        '<?php echo url_for('@install_step3_update') ?>',
        { page_websites: $("#page_websites").val() },
        function (data) {			
			$("#result").html(data);
            //if (data.status === 'success')
            //    nextStep('submit');
		}, 'json');
	$('#page_websites').removeAttr("disabled");
	$(".FB_button ").removeAttr("disabled");
	$('#perms_loader').hide();
}

function nextStep(source)
{
    top.location.href = <?php echo json_encode($sf_user->getRawValue()->getPage()->getCurrentTabUrl()) ?>;

}
-->
</script>
<div class="message-grey mb2" style="zoom:1">
  <strong><?php echo __("Get products from other websites") ?></strong><br />
  <div class="pt05">
    <?php echo link_to_function(__("Skip this step"), 'nextStep(\'skip_top\')') ?>
  </div>
</div>
<div class="vtns_form">
    <form id="settings_form" action="<?php echo url_for('@install_step3') ?>" method="post" onsubmit="submitSettingsForm(); return false;">
      <div id="applications_config_section">
        <h3>
          <?php echo __("Enter urls where you want to get data : ") ?>
          <span><?php echo __("Each url is in one line or seperate by semicolon (;).") ?></span>
        </h3>
		<div style="position:relative; width:573px; height:106px;">
			<textarea name="page_websites" id="page_websites" style="width:573px; height:106px;"></textarea>
			<div id="perms_loader" class="loader" style="display: none; position:absolute; top: 39px; left:256px;"></div>
		</div>
      </div>
	  <div id="result"></div>
	  <div class="install-buttons">
	    <?php echo link_to_function(__('Skip this step'), 'nextStep(\'skip_bottom\')') ?> &nbsp;&middot;&nbsp;
	    <input class="FB_button FB_buttonBlue" type="submit" value="<?php echo __("Save changes and continue") ?>" name="save" />
	  </div>
    </form>
</div>
<div class="clr"></div>
